package com.imooc.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author 逸尘风清
 * @date 2021/5/11
 * @time 10:52
 * 描述：
 */

@Component
@ConfigurationProperties(prefix = "file")
@PropertySource("classpath:config.properties")
@Data
public class FileConfig {
    //文件上传的位置配置
    private String imageUserFaceLocation;
    private String imageNamePrefix;
    //最后访问图片的地址前缀
    private String imageServerUrl;
}
